package config;

import constant.LineConstant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Create Time: 2018年01月25日 20:43
 *
 * @author fin
 */
@Component
public class LineDefaultEnvironment implements LineEnvironment {

    private Integer port = LineConstant.DEFAULT_PORT;

    private String mode = LineConstant.CLIENT_MODE;

    private String name = LineConstant.DEFAULT_NAME;

    private String applicationName = LineConstant.DEFAULT_APPLICATION_NAME;

    @Autowired
    public LineDefaultEnvironment() {
    }

    @Autowired
    public LineDefaultEnvironment(Integer port, String mode) {

        this.port = port;
        this.mode = mode;
    }

    @Autowired
    public LineDefaultEnvironment(Integer port, String mode, String name) {
        this.port = port;
        this.mode = mode;
        this.name = name;
    }

    @Autowired
    public LineDefaultEnvironment(Integer port, String mode, String name, String applicationName) {
        this.port = port;
        this.mode = mode;
        this.name = name;
        this.applicationName = applicationName;
    }

    public String getMode() {
        return mode;
    }

    public Integer getPort() {
        return port;
    }

    public String getName() {
        return name;
    }

    public String getApplicationName() {
        return applicationName;
    }
}
